package com.fzg.common.demo.GUI.snake;

import cn.hutool.core.io.resource.ClassPathResource;

import javax.swing.*;
import java.net.URL;

/**
 * create by fzg
 * 2022/11/15 13:07
 * 获取数据，图片
 */

// 数据：图片资源
public class Data {

    // 蛇头
    public static URL headerURL = new ClassPathResource("/static/snake/header.png").getUrl();
    // 蛇身体
    public static URL bodyURL = new ClassPathResource("/static/snake/body.png").getUrl();
    // 食物
    public static URL foodURL  = new ClassPathResource("/static/snake/food.png").getUrl();


    public static ImageIcon header = new ImageIcon(headerURL);
    public static ImageIcon body = new ImageIcon(bodyURL);
    public static ImageIcon food = new ImageIcon(foodURL);



}
